package com.bamboo.framework.framework.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @Author: GuoQing
 * @Date: 2019/1/3 20:43
 * @description BCryptPasswordEncoder 工具类
 */
public class BCryptPasswordEncoderUtil {

  /**
   * 获取加密前的密码
   * @param password 加密后密码
   */
  public  static  String  getPassword(String password){
    return new BCryptPasswordEncoder().encode(password);
  }
}
